package com.boot.ch3;

import com.onlyone.EnableCustomerCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;

/**
 * @author onlyone
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class,
                                   DataSourceTransactionManagerAutoConfiguration.class })
// 自定义的Enable**配置
@EnableCustomerCache
public class Ch3Application {

    public static void main(String[] args) {
        SpringApplication.run(Ch3Application.class, args);
    }
}
